import {request} from "../utils/request.js";


//获取新品数据
export const getNewAPI = (data) => {
    return request({
        url: '/product/query/products',
        method: 'post',
        data
    })
}

// 获取商品详情
export const getProductDetailAPI = (productId) => {
    return request({
        url: `/product/query/product/${productId}`,
        method: 'get',
    })
}